3.2.1 \(\int \frac {(a+b x)^3 (A+B x)}{x^7} \, dx\)

Optimal. Leaf size=75 \[ -\frac {a^3 A}{6 x^6}-\frac {a^2 (a B+3 A b)}{5 x^5}-\frac {b^2 (3 a B+A b)}{3 x^3}-\frac {3 a b (a B+A b)}{4 x^4}-\frac {b^3 B}{2 x^2} \]

________________________________________________________________________________________

Rubi [A]  time = 0.03, antiderivative size = 75, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.062, Rules used = {76} \begin {gather*} -\frac {a^2 (a B+3 A b)}{5 x^5}-\frac {a^3 A}{6 x^6}-\frac {b^2 (3 a B+A b)}{3 x^3}-\frac {3 a b (a B+A b)}{4 x^4}-\frac {b^3 B}{2 x^2} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[((a + b*x)^3*(A + B*x))/x^7,x]

[Out]

-(a^3*A)/(6*x^6) - (a^2*(3*A*b + a*B))/(5*x^5) - (3*a*b*(A*b + a*B))/(4*x^4) - (b^2*(A*b + 3*a*B))/(3*x^3) - (
b^3*B)/(2*x^2)

Rule 76

Int[((d_.)*(x_))^(n_.)*((a_) + (b_.)*(x_))*((e_) + (f_.)*(x_))^(p_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*
x)*(d*x)^n*(e + f*x)^p, x], x] /; FreeQ[{a, b, d, e, f, n}, x] && IGtQ[p, 0] && (NeQ[n, -1] || EqQ[p, 1]) && N
eQ[b*e + a*f, 0] && ( !IntegerQ[n] || LtQ[9*p + 5*n, 0] || GeQ[n + p + 1, 0] || (GeQ[n + p + 2, 0] && Rational
Q[a, b, d, e, f])) && (NeQ[n + p + 3, 0] || EqQ[p, 1])

Rubi steps

\begin {align*} \int \frac {(a+b x)^3 (A+B x)}{x^7} \, dx &=\int \left (\frac {a^3 A}{x^7}+\frac {a^2 (3 A b+a B)}{x^6}+\frac {3 a b (A b+a B)}{x^5}+\frac {b^2 (A b+3 a B)}{x^4}+\frac {b^3 B}{x^3}\right ) \, dx\\ &=-\frac {a^3 A}{6 x^6}-\frac {a^2 (3 A b+a B)}{5 x^5}-\frac {3 a b (A b+a B)}{4 x^4}-\frac {b^2 (A b+3 a B)}{3 x^3}-\frac {b^3 B}{2 x^2}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.03, size = 69, normalized size = 0.92 \begin {gather*} -\frac {2 a^3 (5 A+6 B x)+9 a^2 b x (4 A+5 B x)+15 a b^2 x^2 (3 A+4 B x)+10 b^3 x^3 (2 A+3 B x)}{60 x^6} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[((a + b*x)^3*(A + B*x))/x^7,x]

[Out]

-1/60*(10*b^3*x^3*(2*A + 3*B*x) + 15*a*b^2*x^2*(3*A + 4*B*x) + 9*a^2*b*x*(4*A + 5*B*x) + 2*a^3*(5*A + 6*B*x))/
x^6

________________________________________________________________________________________

IntegrateAlgebraic [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {(a+b x)^3 (A+B x)}{x^7} \, dx \end {gather*}

Verification is not applicable to the result.

[In]

IntegrateAlgebraic[((a + b*x)^3*(A + B*x))/x^7,x]

[Out]

IntegrateAlgebraic[((a + b*x)^3*(A + B*x))/x^7, x]

________________________________________________________________________________________

fricas [A]  time = 1.24, size = 73, normalized size = 0.97 \begin {gather*} -\frac {30 \, B b^{3} x^{4} + 10 \, A a^{3} + 20 \, {\left (3 \, B a b^{2} + A b^{3}\right )} x^{3} + 45 \, {\left (B a^{2} b + A a b^{2}\right )} x^{2} + 12 \, {\left (B a^{3} + 3 \, A a^{2} b\right )} x}{60 \, x^{6}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)^3*(B*x+A)/x^7,x, algorithm="fricas")

[Out]

-1/60*(30*B*b^3*x^4 + 10*A*a^3 + 20*(3*B*a*b^2 + A*b^3)*x^3 + 45*(B*a^2*b + A*a*b^2)*x^2 + 12*(B*a^3 + 3*A*a^2
*b)*x)/x^6

________________________________________________________________________________________

giac [A]  time = 1.25, size = 75, normalized size = 1.00 \begin {gather*} -\frac {30 \, B b^{3} x^{4} + 60 \, B a b^{2} x^{3} + 20 \, A b^{3} x^{3} + 45 \, B a^{2} b x^{2} + 45 \, A a b^{2} x^{2} + 12 \, B a^{3} x + 36 \, A a^{2} b x + 10 \, A a^{3}}{60 \, x^{6}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)^3*(B*x+A)/x^7,x, algorithm="giac")

[Out]

-1/60*(30*B*b^3*x^4 + 60*B*a*b^2*x^3 + 20*A*b^3*x^3 + 45*B*a^2*b*x^2 + 45*A*a*b^2*x^2 + 12*B*a^3*x + 36*A*a^2*
b*x + 10*A*a^3)/x^6

________________________________________________________________________________________

maple [A]  time = 0.01, size = 66, normalized size = 0.88 \begin {gather*} -\frac {B \,b^{3}}{2 x^{2}}-\frac {\left (A b +3 B a \right ) b^{2}}{3 x^{3}}-\frac {A \,a^{3}}{6 x^{6}}-\frac {3 \left (A b +B a \right ) a b}{4 x^{4}}-\frac {\left (3 A b +B a \right ) a^{2}}{5 x^{5}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((b*x+a)^3*(B*x+A)/x^7,x)

[Out]

-1/6*a^3*A/x^6-1/5*a^2*(3*A*b+B*a)/x^5-3/4*a*b*(A*b+B*a)/x^4-1/3*b^2*(A*b+3*B*a)/x^3-1/2*b^3*B/x^2

________________________________________________________________________________________

maxima [A]  time = 1.14, size = 73, normalized size = 0.97 \begin {gather*} -\frac {30 \, B b^{3} x^{4} + 10 \, A a^{3} + 20 \, {\left (3 \, B a b^{2} + A b^{3}\right )} x^{3} + 45 \, {\left (B a^{2} b + A a b^{2}\right )} x^{2} + 12 \, {\left (B a^{3} + 3 \, A a^{2} b\right )} x}{60 \, x^{6}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)^3*(B*x+A)/x^7,x, algorithm="maxima")

[Out]

-1/60*(30*B*b^3*x^4 + 10*A*a^3 + 20*(3*B*a*b^2 + A*b^3)*x^3 + 45*(B*a^2*b + A*a*b^2)*x^2 + 12*(B*a^3 + 3*A*a^2
*b)*x)/x^6

________________________________________________________________________________________

mupad [B]  time = 0.05, size = 73, normalized size = 0.97 \begin {gather*} -\frac {x^2\,\left (\frac {3\,B\,a^2\,b}{4}+\frac {3\,A\,a\,b^2}{4}\right )+x\,\left (\frac {B\,a^3}{5}+\frac {3\,A\,b\,a^2}{5}\right )+\frac {A\,a^3}{6}+x^3\,\left (\frac {A\,b^3}{3}+B\,a\,b^2\right )+\frac {B\,b^3\,x^4}{2}}{x^6} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(((A + B*x)*(a + b*x)^3)/x^7,x)

[Out]

-(x^2*((3*A*a*b^2)/4 + (3*B*a^2*b)/4) + x*((B*a^3)/5 + (3*A*a^2*b)/5) + (A*a^3)/6 + x^3*((A*b^3)/3 + B*a*b^2)
+ (B*b^3*x^4)/2)/x^6

________________________________________________________________________________________

sympy [A]  time = 2.30, size = 82, normalized size = 1.09 \begin {gather*} \frac {- 10 A a^{3} - 30 B b^{3} x^{4} + x^{3} \left (- 20 A b^{3} - 60 B a b^{2}\right ) + x^{2} \left (- 45 A a b^{2} - 45 B a^{2} b\right ) + x \left (- 36 A a^{2} b - 12 B a^{3}\right )}{60 x^{6}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)**3*(B*x+A)/x**7,x)

[Out]

(-10*A*a**3 - 30*B*b**3*x**4 + x**3*(-20*A*b**3 - 60*B*a*b**2) + x**2*(-45*A*a*b**2 - 45*B*a**2*b) + x*(-36*A*
a**2*b - 12*B*a**3))/(60*x**6)

________________________________________________________________________________________